﻿using OA.Model.MyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.DB
{
    [Table("ProductCategory")]
    public class ProductCategory :BaseInfo
    {
        [MaxLength(20)]
        [Tag(TagEnum.Text, "required", "类别名称", 2, 20)]
        public string Name { get; set; }

        [Tag(TagEnum.Number, "required", "排序", 2, 20)]
        public int Sort { get; set; }

        public int ParentID { get; set; }
    }
}
